/* 
* mock redux
*/
import React from 'react';
import { ActionType, InitialState, initialState } from './reducer';

interface IContext {
    state: InitialState;
    dispatch: React.Dispatch<ActionType>;
}

const Ctx = React.createContext<IContext>({
    state: initialState,
    dispatch: action => action
});

export default Ctx;